package com.code.generation.handler;

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ProjectName: codegeneration
 * @Package: com.code.generation.handler
 * @Description:
 * @Author: DongJW
 * @CreateDate: 2020/11/29 11:22
 * @Version: 1.0
 */
public class MyWebMvcConfigurer implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/code/admin").setViewName("admin");
        registry.addViewController("/code/list").setViewName("list");
        registry.addViewController("/code/aa").setViewName("aa");
        registry.addViewController("/code/index").setViewName("index");
    }
}
